package com.iris.live.services.data.repositories;

import java.sql.Timestamp;

import com.iris.live.services.data.models.财务详单Model;
import com.iris.live.services.data.models.财务详单ModelPK;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by sxy on 2016/7/13.
 */
public interface 财务详单Repository extends JpaRepository<财务详单Model, 财务详单ModelPK>, JpaSpecificationExecutor<财务详单Model> {

	@Modifying
	@Query("UPDATE 财务详单Model u SET u.付款目的 = ?1 , u.最近更新时间 = ?2, u.上次编辑账户 = ?3 WHERE u.vin = ?4")
	int  updNewCarStatu(String payGoal, Timestamp recentUpdTime, String lasUpdAccount, String vin);
}
